package com.dly.blog.service;

import com.dly.blog.domain.Content;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dly.blog.domain.ro.PageRO;
import com.dly.blog.domain.vo.CountVO;
import com.dly.blog.domain.vo.content.ContentHotVO;
import com.dly.blog.domain.vo.content.ContentShowVO;
import com.dly.blog.domain.vo.content.ContentVO;
import com.dly.blog.domain.ro.content.ContentPageRO;
import com.dly.blog.domain.ro.content.ContentAddRO;
import com.dly.blog.domain.ro.content.ContentEditRO;
import com.dly.blog.domain.vo.PageVO;
import com.dly.blog.msg.R;

import java.util.List;

/**
 * <p>
 * 文章 服务类
 * </p>
 *
 * @author DLY
 * @since 2024-01-24 09:53:18
 */
public interface ContentService extends IService<Content> {

    PageVO<ContentVO> getContentPage(ContentPageRO contentPageRO);

    void addContent(ContentAddRO contentAddRO);

    ContentVO getContent(String id);

    void removeContent(String[] ids);

    void editContent(ContentEditRO contentEditRO);

    PageVO<ContentShowVO> getContentShowPage(ContentPageRO contentPageRO);

    List<ContentHotVO> getHot();
    CountVO getCount(String userId);
}
